package Main;

import java.awt.Point;

public abstract class AlgorithmInterface {
	
	final int EXCEPTION_END = 0;
	final int EXCEPTION_COLISION = 1;
	
	
	abstract public void 	runRoutine(int left, int center, int right);
	abstract public void 	detectException(int left, int center, int right);
	
	
	final int DIRECTION_NONE = 0;
	final int DIRECTION_LEFT = 1;
	final int DIRECTION_RIGHT = 2;
	
	protected int prev_sensed = DIRECTION_NONE;
	protected static int total_angle = 0;
	protected static int direction_flg = 1;
	protected static int prev_distance = 0;
		
	
	abstract protected Point getCurrentPosition();
	
	abstract protected void  recvCom(Point pt);
	abstract protected void  sendCom(int comCase, Object obj);
}
